<form id="pagerForm" action="__URL__/readPay" method="post">
	<input type="hidden" name="pageNum" value="1"/>
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="_order" value="{$_REQUEST._order}"/>
	<input type="hidden" name="_sort" value="{$_REQUEST._sort}"/>
	<input type="hidden" name="id" value="{$id}"/> 
</form>
<script type="text/javascript">
function readpaydbltable(target,rel){
    if( target == 'sid_readpay'){
    $.pdialog.open("__URL__/viewapay/id/"+rel+"/sid_node="+rel,"pdialogid", "查看付款信息", { max:false, mask:true, width: 600, height: 400});
    } 
  }
function dialogAjaxPay(json){
	DWZ.ajaxDone(json);
	if (json.statusCode == DWZ.statusCode.ok){
			$.pdialog.open('__URL__/readPay/id/'+{$id},'readPay',"查看收款信息", { max:false, mask:true, width: 540, height: 320});
		
	}
}
</script>
<div class="pageContent">
	<table class="table" width="100%" layoutH="78">
		<thead>
		<tr>
			<th width="80" align="center">付款方</th>
			<th width="80" align="center">收款方</th>
			<th width="80" align="center">总价</th>
			<!-- <th width="80" align="center">付款</th> -->
			<th width="120" align="center">收款日期</th>
			<th width="120" align="center">收款金额</th>
			<!-- <th width="80" align="center">已收款</th>
			<th width="80" align="center">未收款</th> -->
			<th width="80" align="center">操作</th>
		</tr>
		</thead>
		<tbody>
		<define name="number" value="1"/>
		<volist id="vo" name="list">
			<tr target="sid_readpay" rel="{$vo['id']}" ondblclick="readpaydbltable('sid_readpay',{$vo.id})">
				<td>{$customername}</td>
				<td>{$vo['seller']}</td>
				<td>{$vo['total']}</td>
				<!-- <td>{$vo['paymuch']}</td> -->
				<td>{$vo['paytime']}</td>
				<td>{$vo['paymuch']}</td>
			<!-- 	<td>{$vo['haspay']}</td>
				<td>{$vo['nopay']}</td>	 -->
				<td><a class="delete"  href="__URL__/deletePay/pid/{$vo['id']}/id/{$id}" target="ajaxTodo" callback="dialogAjaxPay" title="你确定要删除吗？"><span>删除</span></a></td>	
			</tr>
		</volist>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
			<span>每页</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<eq name="numPerPage" value="24"><option value="24" selected>24</option><else/><option value="24">24</option></eq>
				<eq name="numPerPage" value="50"><option value="50" selected>50</option><else/><option value="50">50</option></eq>
				<eq name="numPerPage" value="100"><option value="100" selected>100</option><else/><option value="100">100</option></eq>
				<eq name="numPerPage" value="200"><option value="200" selected>200</option><else/><option value="200">200</option></eq>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}">
		</div>
	</div>
	<div class="formBar">
		<ul>
			<li><div class="button">
					<div class="buttonContent">
						<button type="button" class="close">关闭</button>
					</div>
				</div></li>
		</ul>
	</div>
</div>

